package com.jwx.mycar.service;



import com.jwx.mycar.entity.vo.ResultVo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public interface UserService {

    /**
     * @Description: 登录
     * @Param: 
     * @return: 
     * @Author: jwx
     * @Date: 2019/11/24
     */
    ResultVo login(String username, String password, HttpServletRequest request, HttpServletResponse response) throws IOException;



    /**
     * @Description: 注册
     * @Param: 
     * @return: 
     * @Author: jwx
     * @Date: 2019/11/24
     */
    ResultVo register(String username, String password, String email, String code, HttpServletRequest request);



    /**
     * @Description: 找回密码
     * @Param: 
     * @return: 
     * @Author: jwx
     * @Date: 2019/11/24
     */
    ResultVo resetPassword(String newPassword, String email, String code, HttpServletRequest request, HttpServletResponse response);

    boolean changePassword(String password, String newPassword, String email);
/**
 *
 * @description:获取用户点赞总数
 * @return:
 * @author: jwx
 * @time: 2019/12/7 8:42
 */


    int getAllUpCount(HttpServletRequest request);
}
